package CirclrAndCylinder;

public class Cylinder extends Circle {
	private double height = 1.0;

	public Cylinder() {
	}

	public Cylinder(double radius) {
		radius = super.getRadius();
	}

	public Cylinder(double radius, double height) {
		radius = super.getRadius();
		this.height = height;
	}

	public Cylinder(double radius, double height, String color) {
		radius = super.getRadius();
		this.height = height;
		color = super.getColor();
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double getVolume() {
		return super.getArea() * height;
	}
}
